package com.cloudfun.campusshare.repo;

import com.cloudfun.campusshare.entity.SubMerchantEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Optional;

/**
 * Created by CodeGenerator on 2020/08/10
 */
public interface KjtSubMerchantRepo extends PagingAndSortingRepository<SubMerchantEntity, String>,
        JpaSpecificationExecutor<SubMerchantEntity> {

    Optional<SubMerchantEntity> findByUserId(String userId);

    Optional<SubMerchantEntity> findByEmail(String email);

    Optional<SubMerchantEntity> findByIdentityId(String identityId);
}